import logging
import logging.config
from config.VarConfig import parentDirPath

#读取配置文件

logging.config.fileConfig("logging.conf")
logger = logging.getLogger()

logger.debug("debug message")
logger.info("info message")
logger.warning("warn message")
logger.error("error message")
logger.critical("critical message")

def debug(message):
    logger.debug(message)

def info(message):
    logger.info(message)

def warning(message):
    logger.warning(message)

